import {request} from "../request";

export function getRoles(){
    return request({
        url:'/sys/role/list',
        // url:'/demo/warehouse/page',
        method:'get'
    })
}

export function getRoleById(id){
    return request({
        url:`/sys/role/${id}`,
        method:'get'
    })
}

export function postRole(data){
    return request({
        url:`/sys/role`,
        method:'post',
		data:data
    })
}

export function putRole(data){
    return request({
        url:`/sys/role`,
        method:'put',
		data:data
    })
}